﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Model.Models.VendaModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    atualizarStatus
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Atualizar pedido</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>

        <fieldset>
        <legend>Atualizar pedido</legend>
        <span style="display: none">
            <%: Html.EditorFor(model => model.Id_Venda) %>
            <%: Html.EditorFor(model => model.Id_Empresa)%>
            <%: Html.EditorFor(model => model.Id_Status)%>
            <%: Html.EditorFor(model => model.Id_Cliente)%>
            <%: Html.EditorFor(model => model.ClienteNome)%>
            <%: Html.EditorFor(model => model.StatusNome)%>
            <%: Html.EditorFor(model => model.Data_Venda)%>
            </span>
        <div class="editor-label">
            <%:ViewBag.Mensagem %>
        </div>
    </fieldset>
<% } %>
        <p>
            <input type="submit" value="Confirmar" class="button dark" />
            <input type="button" value="Voltar" class="button dark" onclick="location.href='<%: Url.Action("ListarPedidos", "Empresa") %>'" />
        </p>

</asp:Content>
